package mall

import (
	"github.com/jinzhu/gorm"
	"mall-go/common"
	"mall-go/model"
)

type MallCarouselController struct {
	DB *gorm.DB
}

func NewMallCarouselController() MallCarouselController {
	db := common.GetDB()
	db.AutoMigrate(model.Carousel{})
	return MallCarouselController{DB: db}
}
